/*
 * @Author: hutong huareu980@163.com
 * @Date: 2023-06-13 17:46:35
 * @LastEditors: hutong huareu980@163.com
 * @LastEditTime: 2023-06-13 19:30:03
 * @FilePath: /smart-web-admin/src/utils/oss.ts
 * @Description:
 */
export const setFileList = (url: string) => {
	const urlList = url.split(';');
	return urlList.map((str) => {
		const arr = str.split('/');
		return {
			url: import.meta.env.VITE_OSS_URL + '/' + str, //由于图片会过期，所以url使用本地图片路径
			name: arr[arr.length - 1],
			fileName: str,
		};
	});
};
